ostree.git
6 years agotests/test-admin-deploy-none: Update comment for #1774 status
Robert Fairley [Thu, 14 Mar 2019 23:17:37 +0000 (19:17 -0400)]
tests/test-admin-deploy-none: Update comment for #1774 status

Closes: #1831
Approved by: jlebon

6 years agolib/sysroot: Match deployment /usr mode for overlay
Jonathan Lebon [Wed, 24 Apr 2019 13:42:56 +0000 (09:42 -0400)]
lib/sysroot: Match deployment /usr mode for overlay

Rather than hardcoding 0755, let's directly look at what `/usr`'s mode
is and copy it when creating the overlay.

Closes: #1843
Approved by: cgwalters

6 years agolib/sysroot: Call `chmod` on overlay dirs when unlocking
Jonathan Lebon [Tue, 23 Apr 2019 20:03:48 +0000 (16:03 -0400)]
lib/sysroot: Call `chmod` on overlay dirs when unlocking

Otherwise, we'll be subject to whatever `umask` is currently. Normally,
processes should respect `umask` when creating files and directories,
but specifically for `ostree admin unlock` (or `rpm-ostree usroverlay`),
this poses a problem since e.g. a `/usr` with mode 0700 will break any
daemon that doesn't run as root and needs to read files under `/usr`,
such as polkitd.

This patch just does a `chmod()` after the `mkdir()`. An alternative
would be to do `umask(0000)` after forking into the child process
that'll call `mount()`, but that'd require also moving the `mkdir()`
calls into there, making for a more intrusive patch.

Closes: #1843
Approved by: cgwalters

6 years agotests/test-config: Fix regex causing Debian test failure
Robert Fairley [Wed, 17 Apr 2019 16:03:55 +0000 (12:03 -0400)]
tests/test-config: Fix regex causing Debian test failure

Fix CI failure due to mismatching quotes in the error output given
between Fedora and Debian test suites.

Example of the error in Debian Stretch:
https://api.travis-ci.org/v3/job/519335717/log.txt

Closes: #1839
Approved by: cgwalters

6 years agotravis: Update to Debian Stretch
Robert Fairley [Fri, 12 Apr 2019 16:10:41 +0000 (12:10 -0400)]
travis: Update to Debian Stretch

Update to Stretch to use updated version of glib2.0. Fixes CI
failure when parsing error output in tests/test-config.sh. See:

https://github.com/ostreedev/ostree/pull/1838#issuecomment-482186680
https://api.travis-ci.org/v3/job/518830164/log.txt

Closes: #1839
Approved by: cgwalters

6 years agoostree-prepare-root: Log journal message after finding deployment
Jonathan Lebon [Tue, 25 Sep 2018 19:42:28 +0000 (15:42 -0400)]
ostree-prepare-root: Log journal message after finding deployment

Log a structured journal message when resolving the deployment path.
This will be used by the `rpm-ostree history` command to find past
deployments the system has booted into.

Closes: #1842
Approved by: cgwalters

6 years agolib/repo-refs: Allow resolving local collection-refs
Matthew Leeds [Thu, 21 Feb 2019 23:47:16 +0000 (15:47 -0800)]
lib/repo-refs: Allow resolving local collection-refs

Currently for a "normal" refspec you can choose to use
ostree_repo_resolve_rev_ext() instead of ostree_repo_resolve_rev() if
you only want to look at local refs (in refs/heads/) not remote ones.
This commit provides the analogous functionality for
ostree_repo_resolve_collection_ref() by adding a flag
OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY and implementing it. This
will be used by Flatpak.

Closes: #1825
Approved by: jlebon

6 years agolib/repo-refs: Add a flag to exclude listing from refs/mirrors
Matthew Leeds [Thu, 21 Feb 2019 23:39:45 +0000 (15:39 -0800)]
lib/repo-refs: Add a flag to exclude listing from refs/mirrors

Currently the flag OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES for
ostree_repo_list_collection_refs() means that refs in refs/remotes/
should be excluded but refs in refs/mirrors/ should still be checked, in
addition to refs/heads/ which is always checked. However in some
situations you want to exclude both remote and mirrored refs and only
check local "owned" ones. So this
commit adds a new flag OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS which
lets you exclude refs/mirrors/ from the listing.

This way we can avoid breaking API but still allow the listing of local
collection-refs.

The impetus for this change is that I'm changing Flatpak to make more
use of refs/mirrors, and we need a way to specify that a collection-ref
is local when using ostree_repo_resolve_collection_ref() in, for
example, the implementation of the repo command. The subsequent commit
will make the changes needed there.

Closes: #1825
Approved by: jlebon

6 years agolib/repo-refs: Fix resolving collection-refs
Matthew Leeds [Wed, 20 Feb 2019 21:18:31 +0000 (13:18 -0800)]
lib/repo-refs: Fix resolving collection-refs

My last commit "lib/repo-refs: Resolve collection-refs in-memory and in
parent repos" changed ostree_repo_resolve_collection_ref() to check the
in-memory set of refs *after* failing to find the ref on disk but that's
not what we want. We want to use the in-memory set of refs first,
because those are the most up to date commits, and then fall back to the
on-disk repo and finally fall back to checking any parent repo. This
commit makes such a change to the order of operations, which is
consistent with how ostree_repo_resolve_rev() works.

Aside from this change being logical, it also fixes some unit test
failures on an unmerged branch of flatpak:
https://github.com/flatpak/flatpak/pull/2705

Also, tweak the comments here.

Closes: #1825
Approved by: jlebon

6 years agoboot: Activate ostree-finalize-staged even earlier
Jonathan Lebon [Fri, 12 Apr 2019 17:49:08 +0000 (13:49 -0400)]
boot: Activate ostree-finalize-staged even earlier

Really, all `ostree admin finalize-staged` needs is access to `/sysroot`
and `/boot`. So let's activate it right after `local-fs.target` so that
it gets deactivated later in the shutdown process. This should allow us
to conflict with less services still running and possibly writing things
to `/etc`.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1672283

Closes: #1840
Approved by: cgwalters

6 years agotests: Put a regex in quotes
Matthew Leeds [Tue, 2 Apr 2019 02:04:05 +0000 (19:04 -0700)]
tests: Put a regex in quotes

Closes: #1834
Approved by: rfairley

6 years agotests: Escape periods when appropriate
Matthew Leeds [Tue, 2 Apr 2019 02:01:49 +0000 (19:01 -0700)]
tests: Escape periods when appropriate

Don't match any character in a regular expression when we only want to
match a period.

Closes: #1834
Approved by: rfairley

6 years agolib/repo: fix leak of `bootloader` field
Laurent Bonnans [Thu, 11 Apr 2019 10:04:52 +0000 (12:04 +0200)]
lib/repo: fix leak of `bootloader` field

Added in 21ebc7d21edd00c3fe0ce80ea68ba3f8f5e41ae3

Closes: #1837
Approved by: rfairley

7 years agolib: Check for http_proxy being the empty string
Matthew Leeds [Tue, 2 Apr 2019 20:40:11 +0000 (13:40 -0700)]
lib: Check for http_proxy being the empty string

On at least one user's computer, g_getenv("http_proxy") returns the
empty string, so check for that and treat it as no proxy rather than
printing a warning.

See https://github.com/flatpak/flatpak/issues/2790

Closes: #1835
Approved by: cgwalters

7 years agolib/repo-pull: Allow the keyring remote to be overridden
Matthew Leeds [Thu, 14 Feb 2019 08:54:09 +0000 (00:54 -0800)]
lib/repo-pull: Allow the keyring remote to be overridden

Currently the P2P code requires you to trust every remote you have
configured to the same extent, because a remote controlled by a
malicious actor can serve updates to refs (such as Flatpak apps)
installed from other remotes.[1] The way this attack would play out is
that the malicious remote would deploy the same collection ID as the
victim remote, and would then be able to serve updates for it.

One possible remedy would be to make it an error to configure remotes
such that two have the same collection ID but differing GPG keys. I
attempted to do that in Flatpak[2] but it proved difficult because it is
valid to configure two remotes with the same collection ID, and they may
then each want to update their keyrings which wouldn't happen
atomically.

Another potential solution I've considered is to add a `trusted-remotes`
option to ostree_repo_find_remotes_async() which would dictate which
keyring to use when pulling each ref. However the
ostree_repo_finder_resolve_async() API would still remain vulnerable,
and changing that would require rewriting a large chunk of libostree's
P2P support.

So this commit represents a third attempt at mitigating this security
hole, namely to have the client specify which remote to use for GPG
verification at pull time. This way the pull will fail if the commits
are signed with anything other than the keys we actually trust to serve
updates.

This is implemented as an option "ref-keyring-map" for
ostree_repo_pull_from_remotes_async() and
ostree_repo_pull_with_options() which dictates the remote to be used for
GPG verification of each collection-ref. I think specifying a keyring
remote for each ref is better than specifying a remote for each
OstreeRepoFinderResult, because there are some edge cases where a result
could serve updates to refs which were installed from more than one
remote.

The PR to make Flatpak use this new option is here[3].

[1] https://github.com/flatpak/flatpak/issues/1447
[2] https://github.com/flatpak/flatpak/pull/2601
[3] https://github.com/flatpak/flatpak/pull/2705

Closes: #1810
Approved by: cgwalters

7 years agostatic-delta: Change `show` to display from/to commits
Colin Walters [Sat, 16 Feb 2019 20:22:30 +0000 (20:22 +0000)]
static-delta: Change `show` to display from/to commits

When writing a delta to a file this may not always be recorded
in the filename, and it's useful data.

Ref: https://mail.gnome.org/archives/ostree-list/2019-February/msg00000.html

This also required teaching `show` to accept a file path.

Note...for some reason `test-deltas.sh` breaks when run from
a tty - we get `SIGTTIN` which implies something is reading from
the tty but it wasn't obvious to me what.

Closes: #1823
Approved by: jlebon

7 years agolib/deploy: Don't include version twice in bootmenu title
Jonathan Lebon [Fri, 1 Mar 2019 14:16:55 +0000 (09:16 -0500)]
lib/deploy: Don't include version twice in bootmenu title

In Silverblue right now, the boot menu title looks like this:

    Fedora 29.20190301.0 (Workstation Edition) 29.20190301.0 (ostree)

This is because RPM-OSTree's `mutate-os-release` feature is enabled,
which injects the OSTree version string directly into `VERSION` and
`PRETTY_NAME`. So appending the version string again is a bit redundant.
Let's just do a simple substring check here before adding the version to
the title.

Closes: #1829
Approved by: cgwalters

7 years agoAdd sysroot.bootloader repo config key
Robert Fairley [Thu, 14 Feb 2019 21:18:01 +0000 (16:18 -0500)]
Add sysroot.bootloader repo config key

The sysroot.bootloader key configures the bootloader
that OSTree uses when deploying a sysroot. Having this key
allows specifying behavior not to use the default bootloader
backend code, which is preferable when creating a first
deployment from the sysroot (#1774).

As of now, the key can take the values "auto" or "none". If
the key is not given, the value defaults to "auto".

"auto" causes _ostree_sysroot_query_bootloader() to be used
when writing a new deployment, which is the original behavior
that dynamically detects which bootloader to use.

"none" avoids querying the bootloader dynamically. The BLS
config fragments are still written to
sysroot/boot/loader/entries for use by higher-level software.

More values can be supported in future to specify a single
bootloader, different behavior for the bootloader code, or
a list of bootloaders to try.

Resolves: #1774

Closes: #1814
Approved by: jlebon

7 years agolibotutil: Add ot_keyfile_get_value_with_default_group_optional()
Robert Fairley [Wed, 20 Feb 2019 05:56:54 +0000 (00:56 -0500)]
libotutil: Add ot_keyfile_get_value_with_default_group_optional()

Add ot_keyfile_get_value_with_default_group_optional() which allows
getting values from keys where the group is optional in the config
file. This is preparatory to add the sysroot.bootloader repo config
key, where the sysroot group is optional.

Closes: #1814
Approved by: jlebon

7 years agolibotutil: Rename to ot_keyfile_get_string_list_with_separator_choice()
Robert Fairley [Thu, 14 Feb 2019 21:14:03 +0000 (16:14 -0500)]
libotutil: Rename to ot_keyfile_get_string_list_with_separator_choice()

Rename ot_keyfile_get_string_as_list() to
ot_keyfile_get_string_list_with_separator_choice() which expresses
more clearly why the function is needed. Also shorten the
function comment.

Closes: #1814
Approved by: jlebon

7 years agotests/test-config: Remove extra space
Robert Fairley [Fri, 1 Mar 2019 20:24:07 +0000 (15:24 -0500)]
tests/test-config: Remove extra space

Closes: #1814
Approved by: jlebon

7 years agoostree-grub-generator: Comment wording fix
Robert Fairley [Fri, 8 Feb 2019 22:28:56 +0000 (17:28 -0500)]
ostree-grub-generator: Comment wording fix

Closes: #1814
Approved by: jlebon

7 years agoci/rpmostree: Bump to 2019.1
Colin Walters [Thu, 24 Jan 2019 10:37:46 +0000 (11:37 +0100)]
ci/rpmostree: Bump to 2019.1

Should fix the issue that CI broke due to libsolv not being sync'd.

Closes: #1806
Approved by: jlebon

7 years agoci/rpmostree: Fix use of `fatal`
Colin Walters [Thu, 24 Jan 2019 10:36:40 +0000 (11:36 +0100)]
ci/rpmostree: Fix use of `fatal`

We're not using libtest, just inline it.

Closes: #1806
Approved by: jlebon

7 years agoostree/config: Check for too many args
Matthew Leeds [Fri, 1 Mar 2019 00:19:41 +0000 (16:19 -0800)]
ostree/config: Check for too many args

Currently it's not an error to provide too many arguments to an ostree
config command. Change it so we print usage information in that case,
and update the unit tests.

Closes: #1743
Approved by: cgwalters

7 years agoman/ostree-config: Consistently use GROUPNAME placeholder
Matthew Leeds [Thu, 28 Feb 2019 23:15:51 +0000 (15:15 -0800)]
man/ostree-config: Consistently use GROUPNAME placeholder

It doesn't make much sense to use SECTIONNAME in some places and
GROUPNAME in others when they mean the same thing.

Closes: #1743
Approved by: cgwalters

7 years agoostree/config: Use g_autoptr instead of goto
Matthew Leeds [Fri, 28 Sep 2018 22:45:43 +0000 (15:45 -0700)]
ostree/config: Use g_autoptr instead of goto

It seems cleaner to make the GKeyFile a g_autoptr variable and just
return rather than using the "goto out;" idiom.

Closes: #1743
Approved by: cgwalters

7 years agoostree/config: Add an "unset" operation
Matthew Leeds [Fri, 28 Sep 2018 22:36:49 +0000 (15:36 -0700)]
ostree/config: Add an "unset" operation

Currently there's a way to set a key to the empty string but there's no
way to unset it completely (remove the key from the group). This might
be helpful for instance if you want to temporarily set
"core.lock-timeout-secs" to a specific value for the duration of one
operation and then return it to the default after that operation
completes.

This commit implements an "unset" operation for the config command, adds
a unit test, and updates the man page.

Closes: #1743
Approved by: cgwalters

7 years agolib/repo-refs: Resolve collection-refs in-memory and in parent repos
Matthew Leeds [Thu, 14 Feb 2019 09:33:20 +0000 (01:33 -0800)]
lib/repo-refs: Resolve collection-refs in-memory and in parent repos

Currently the behavior of ostree_repo_resolve_rev() is that it tries to
resolve a ref to a commit by checking the refs/ directories, but also by
checking for in-memory ref-checksum pairs which are part of an
in-progress transaction and also by checking the parent repo if one
exists. Currently ostree_repo_resolve_collection_ref() only checks the
refs/ directories, so this commit makes its behavior analagous since it
is the analagous API which supports collection-refs.

The impetus for this was that currently Flatpak uses
ostree_repo_resolve_rev() to load a commit after doing a P2P pull in
flatpak_dir_do_resolve_p2p_refs(), but that assumes the ref came from
the same remote that originally provided it, which might not be the case
if more than one remote has the same collection ID configured. And
changing Flatpak to use ostree_repo_resolve_collection_ref() doesn't
work without this patch.

Closes: #1821
Approved by: pwithnall

7 years agoman: Document ostree --version
Matthew Leeds [Thu, 14 Feb 2019 19:08:28 +0000 (11:08 -0800)]
man: Document ostree --version

Closes: #1820
Approved by: rfairley

7 years agotests: Remove unused includes in libostreetest.c
Matthew Leeds [Sat, 9 Feb 2019 00:01:54 +0000 (16:01 -0800)]
tests: Remove unused includes in libostreetest.c

Since commit a06bd82cd we no longer use OVERLAYFS_SUPER_MAGIC or
statfs() so remove the includes for linux/magic.h and sys/vfs.h

Closes: #1815
Approved by: cgwalters

7 years agotests: Update for glib 2.59.2
Jeremy Bicha [Mon, 11 Feb 2019 01:54:05 +0000 (20:54 -0500)]
tests: Update for glib 2.59.2

glib 2.59.2 uses a non-breaking space instead of a space to
separate the quantity and unit in g_format_size() so update
our test to handle both a plain space and a non-breaking space.

See https://gitlab.gnome.org/GNOME/glib/issues/1625

Closes: #1818
Approved by: cgwalters

7 years agotests: Don't skip collection-based summary test
Matthew Leeds [Wed, 23 Jan 2019 00:50:32 +0000 (16:50 -0800)]
tests: Don't skip collection-based summary test

OSTree's P2P support used to be a compile time option but is now always
enabled. One of the tests was still checking for the old feature flag,
"experimental", which has been renamed to "p2p" and skipping for that
reason. Delete the check so the test always runs.

Closes: #1804
Approved by: pwithnall

7 years agolib/repo: Fix Since: annotation for REMOTE_CHANGE_REPLACE
Matthew Leeds [Fri, 8 Feb 2019 21:52:52 +0000 (13:52 -0800)]
lib/repo: Fix Since: annotation for REMOTE_CHANGE_REPLACE

Closes: #1813
Approved by: jlebon

7 years agoremote-add: Add --force option to add or replace remote
Dan Nicholson [Tue, 12 Sep 2017 22:05:08 +0000 (17:05 -0500)]
remote-add: Add --force option to add or replace remote

This uses the OSTREE_REPO_REMOTE_CHANGE_REPLACE operation to add a
remote or replace an existing one. This is roughly the opposite of
--if-not-exists and will raise an error if both options are passed.

Closes: #1166
Approved by: cgwalters

7 years agoman: Document remote add --if-not-exists option
Dan Nicholson [Tue, 12 Sep 2017 20:20:46 +0000 (15:20 -0500)]
man: Document remote add --if-not-exists option

Closes: #1166
Approved by: cgwalters

7 years agorepo: Add OstreeRepoRemoteChange replace operation
Dan Nicholson [Tue, 12 Sep 2017 17:23:31 +0000 (12:23 -0500)]
repo: Add OstreeRepoRemoteChange replace operation

Add the OSTREE_REPO_REMOTE_CHANGE_REPLACE operation to the
OstreeRepoRemoteChange enum. This operation will add a remote or replace
an existing one. It respects the location of the remote configuration
file when replacing and the remotes config dir settings when adding a
new remote.

Closes: #1166
Approved by: cgwalters

7 years agolib/repo-pull: Fix docs for n-network-retries option
Matthew Leeds [Wed, 6 Feb 2019 22:50:13 +0000 (14:50 -0800)]
lib/repo-pull: Fix docs for n-network-retries option

Add "Since: 2018.6" and copy the docs to
ostree_repo_pull_from_remotes_async() which also supports it.

Closes: #1812
Approved by: jlebon

7 years agolib/commit: Don't set user.ostreemeta for bare → bare-user-only imports
Colin Walters [Wed, 16 Jan 2019 13:45:34 +0000 (13:45 +0000)]
lib/commit: Don't set user.ostreemeta for bare â†’ bare-user-only imports

The point of `bare-user-only` is it doesn't have xattrs; it's a
special case in import handling.

Closes: #1803
Approved by: jlebon

7 years agolib/commit: Set xattr on correct fd for bare-user → bare-user imports
Colin Walters [Wed, 16 Jan 2019 13:36:55 +0000 (08:36 -0500)]
lib/commit: Set xattr on correct fd for bare-user â†’ bare-user imports

Another fix to https://github.com/ostreedev/ostree/pull/1771

Closes: #1803
Approved by: jlebon

7 years agolib/commit: Fix bare → bare imports
Colin Walters [Wed, 16 Jan 2019 13:30:53 +0000 (08:30 -0500)]
lib/commit: Fix bare â†’ bare imports

Regression from https://github.com/ostreedev/ostree/pull/1771

This broke rpmostreepayload in Anaconda where we import a bare repo:
https://openqa.fedoraproject.org/tests/345339#step/_do_install_and_reboot/4

Reported-by: Adam Williamson <adamwill@fedoraproject.org>
Closes: #1803
Approved by: jlebon

7 years agoREADME: add note about Liri OS
Micah Abbott [Tue, 15 Jan 2019 14:45:02 +0000 (09:45 -0500)]
README: add note about Liri OS

Closes: #1802
Approved by: rfairley

7 years agoPost-release bump
Colin Walters [Fri, 11 Jan 2019 15:46:36 +0000 (10:46 -0500)]
Post-release bump

Closes: #1800
Approved by: jlebon

7 years agoRelease 2019.1
Colin Walters [Fri, 11 Jan 2019 15:46:19 +0000 (10:46 -0500)]
Release 2019.1

Closes: #1800
Approved by: jlebon

7 years agopull: If built with --disable-http2, allow enabling via http2=1
Colin Walters [Tue, 8 Jan 2019 14:41:26 +0000 (09:41 -0500)]
pull: If built with --disable-http2, allow enabling via http2=1

We have a `http2=[0|1]` remote config option; let's have the
`--disable-http2` build option define the default for that.  This way
it's easy to still enable http2 for testing even if
we have it disabled by default.

Closes: #1798
Approved by: jlebon

7 years agofixup! admin/status: test GPG signature check
Colin Walters [Tue, 8 Jan 2019 15:24:10 +0000 (15:24 +0000)]
fixup! admin/status: test GPG signature check

7 years agoadmin/status: test GPG signature check
Rafael Fonseca [Mon, 7 Jan 2019 14:12:42 +0000 (15:12 +0100)]
admin/status: test GPG signature check

Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
Closes: #1797
Approved by: cgwalters

7 years agoatomic-upgrades doc: fix example url to fetch a ref checksum
Sinny Kumari [Wed, 2 Jan 2019 10:33:19 +0000 (16:03 +0530)]
atomic-upgrades doc: fix example url to fetch a ref checksum

Signed-off-by: Sinny Kumari <sinny@redhat.com>
Closes: #1795
Approved by: cgwalters

7 years agogrub2: add support for devicetree
Ricardo Salveti [Mon, 17 Dec 2018 18:17:51 +0000 (16:17 -0200)]
grub2: add support for devicetree

Similar as available for u-boot (ce2995e1dc1557c4d97ef5af807eacf3ef4a22d8)
and syslinux (c5112c25e4519835c4cd53f4350c1b2f2a477746), enable parsing
and writing devicetree filename into grub.cfg.

This is required by arm64-based devices running edk2 instead of u-boot
as the main bootloader (e.g. 96boards HiKey and HiKey960).

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Closes: #1790
Approved by: cgwalters

7 years agoFix a small leak in ostree_repo_remote_list_collection_refs
Matthias Clasen [Sat, 15 Dec 2018 20:19:46 +0000 (15:19 -0500)]
Fix a small leak in ostree_repo_remote_list_collection_refs

g_variant_iter_loop would free the value for us,
but not if we're returning from the middle of the
loop body.

Closes: #1788
Approved by: cgwalters

7 years agoFix a small leak in ostree_repo_pull_with_options
Matthias Clasen [Sat, 15 Dec 2018 16:15:29 +0000 (11:15 -0500)]
Fix a small leak in ostree_repo_pull_with_options

Spotted in a flatpak valgrind log.

Closes: #1788
Approved by: cgwalters

7 years agoboot/grub2: Add some more explanation in ostree-grub-generator
Jonathan Lebon [Thu, 20 Dec 2018 14:21:20 +0000 (09:21 -0500)]
boot/grub2: Add some more explanation in ostree-grub-generator

Even with the previous docstring, I didn't understand at first the
relationship between the `ostree-grub-generator` script and
`ostree-bootloader-grub2.c`. Throw some more docs to clarify things a
bit.

Closes: #1791
Approved by: cgwalters

7 years agoadmin/status: Correctly check GPG signature
Rafael Fonseca [Thu, 13 Dec 2018 15:43:35 +0000 (16:43 +0100)]
admin/status: Correctly check GPG signature

Closes: #1770
Closes: #1787
Approved by: jlebon

7 years agoman/ostree.repo-config: Update min-free-space-* docs
Umang Jain [Wed, 12 Dec 2018 08:05:26 +0000 (13:35 +0530)]
man/ostree.repo-config: Update min-free-space-* docs

Docs should reflect the changes done in PR:
https://github.com/ostreedev/ostree/pull/1779

Closes: #1786
Approved by: jlebon

7 years agolib/repo-commit: Relax min-free-space check in prepare_transaction()
Umang Jain [Wed, 5 Dec 2018 22:56:22 +0000 (04:26 +0530)]
lib/repo-commit: Relax min-free-space check in prepare_transaction()

We want a case where we can disable the min-free-space check. Initially,
it felt like to add a OSTREE_REPO_PULL_FLAGS_DISABLE_FREE_SPACE_CHECK but
the problem is prepare_transaction() does not have a OstreeRepoPullFlags
parameter which we can parse right here. On top of it, prepare_transaction()
enforces min-free-space check and won't let the transaction proceed if
the check failed.

This is pretty bad in conjunction with "inherit-transaction" as what
Flatpak uses. There is no way to disable this check unless we remove
it altogether from prepare_transaction.

This issue came out to light when flatpak wasn't able to write metadata
after fetching from remote:

[uajain@localhost ~]$ flatpak remote-info flathub org.kde.Platform//5.9
error: min-free-space-size 500MB would be exceeded

Metadata objects helps in housekeeping and restricting them means
restricting crucial UX (like search, new updates) functionalities
in clients like gnome-software. The error banners originated from
these issues are also abrupt and not much helpful to the user. This
is the specific instance of the issue this patches tries to address.

See https://github.com/flatpak/flatpak/issues/2139 for discussion.

Closes: #1779
Approved by: mwleeds

7 years agolib/kargs: allow empty-list arguments
Luca Bruno [Mon, 10 Dec 2018 16:03:36 +0000 (16:03 +0000)]
lib/kargs: allow empty-list arguments

This adds support for empty-list arguments (e.g. `acpi_osi=`), which
are semantically different from simple-keyword arguments.

Ref: https://github.com/projectatomic/rpm-ostree/issues/1706

Closes: #1785
Approved by: cgwalters

7 years agoFix leak in ostree_content_stream_parse()
Alexander Larsson [Mon, 10 Dec 2018 12:51:14 +0000 (13:51 +0100)]
Fix leak in ostree_content_stream_parse()

We need to ref_sink new GVariants for autoptr to work

Closes: #1784
Approved by: cgwalters

7 years agoci/papr: Drop insttests
Colin Walters [Sat, 8 Dec 2018 19:43:54 +0000 (14:43 -0500)]
ci/papr: Drop insttests

This didn't quite work out, and is now always failing because Ansible
changed.

For now we have some OK coverage via the rpm-ostree suite, let's just
drop this and revisit later.

Closes: #1783
Approved by: jlebon

7 years agobin/pull: Add URL metavar for --url switch
Jonathan Lebon [Fri, 7 Dec 2018 21:44:23 +0000 (16:44 -0500)]
bin/pull: Add URL metavar for --url switch

Otherwise it's not obvious that it takes an argument.

Closes: #1782
Approved by: cgwalters

7 years agoUpdate libglnx
Colin Walters [Fri, 7 Dec 2018 14:38:02 +0000 (14:38 +0000)]
Update libglnx

To pick up https://gitlab.gnome.org/GNOME/libglnx/merge_requests/4

Update submodule: libglnx

Closes: #1781
Approved by: jlebon

7 years agolib/commit: Try checksum+hardlink for untrusted local same-uid repos
Colin Walters [Tue, 4 Dec 2018 14:37:20 +0000 (09:37 -0500)]
lib/commit: Try checksum+hardlink for untrusted local same-uid repos

This mainly helps flatpak for enabling a hardlink-able local pull
during deploy in the --system case.  We assume the files are immutable
when owned by the same uid.

See https://github.com/ostreedev/ostree/issues/1723
and https://github.com/flatpak/flatpak/pull/2342

Closes: #1776
Approved by: uajain

7 years agolib/repo: Clarify docs for importing w/ trust
Matthew Leeds [Mon, 3 Dec 2018 23:27:39 +0000 (15:27 -0800)]
lib/repo: Clarify docs for importing w/ trust

The way _ostree_repo_import_object() is written, a hardlink copy is only
attempted if the source repo is trusted, so update the docs for
ostree_repo_import_object_from_with_trust() to reflect that.

Closes: #1777
Approved by: cgwalters

7 years agolib/repo: Search a list of paths in gpgkeypath for gpg keys
rfairley [Tue, 6 Nov 2018 20:25:15 +0000 (15:25 -0500)]
lib/repo: Search a list of paths in gpgkeypath for gpg keys

This allows specifying gpgpath as list of
paths that can point to a file or a directory. If a directory path
is given, paths to all regular files in the directory are added
to the remote as gpg ascii keys. If the path is not a directory,
the file is directly added (whether regular file, empty - errors
will be reported later when verifying gpg keys e.g. when pulling).

Adding the gpgkeypath property looks like:

ostree --repo=repo remote add --set=gpgpath="/path/key1.asc,/path/keys.d" R1 https://example.com/some/remote/ostree/repo

Closes #773

Closes: #1773
Approved by: cgwalters

7 years agolib/commit: Copy user.ostreemeta only for bare-user
Jonathan Lebon [Wed, 31 Oct 2018 19:27:26 +0000 (15:27 -0400)]
lib/commit: Copy user.ostreemeta only for bare-user

When falling back to copying objects when importing them into a
bare-user repo, we only actually need to transfer over the
`user.ostreemeta` xattr.

This allows the destination repo to be on a separate filesystem that
might not even support `security.selinux`. (I hit this while importing
over virtio-9p).

Closes: #1771
Approved by: cgwalters

7 years agolib/commit: Add devino_cache_hits to txn stats
Jonathan Lebon [Fri, 2 Nov 2018 19:39:34 +0000 (15:39 -0400)]
lib/commit: Add devino_cache_hits to txn stats

I found this useful while hacking on rpm-ostree but I think it might be
useful enough to upstream. This stat is really helpful for validating
that a pipeline is hitting the devino cache sweet spot.

Closes: #1772
Approved by: cgwalters

7 years agobin/pull-local: Add --commit-metadata-only
Jonathan Lebon [Wed, 31 Oct 2018 17:32:47 +0000 (13:32 -0400)]
bin/pull-local: Add --commit-metadata-only

It might be "local", but e.g. we may be crossing filesystems. So there
are valid use cases for only wanting to pull the commit metadata with
`pull-local`.

Closes: #1769
Approved by: cgwalters

7 years agobin/refs: Disallow creating broken aliases
Jonathan Lebon [Tue, 30 Oct 2018 17:21:46 +0000 (13:21 -0400)]
bin/refs: Disallow creating broken aliases

This is the alias version of #1749. I.e. we want to make sure that one
can't even create an alias which would end up dangling.

See also: https://pagure.io/releng/issue/7891

Closes: #1768
Approved by: sinnykumari

7 years agocheckout: honor opaque checkouts
Giuseppe Scrivano [Mon, 5 Mar 2018 23:01:14 +0000 (00:01 +0100)]
checkout: honor opaque checkouts

if a file ".wh..wh..opq" is present in a directory, delete anything
from lower layers that is already in that directory.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #1486
Approved by: cgwalters

7 years agoci: Add `dist-then-build` target to catch missing `EXTRA_DIST`
Colin Walters [Thu, 25 Oct 2018 15:15:51 +0000 (15:15 +0000)]
ci: Add `dist-then-build` target to catch missing `EXTRA_DIST`

I personally am very opposed to the entire idea of `make distcheck`;
I think source code should canonically be *git* and not tarballs.
See e.g. https://github.com/cgwalters/git-evtag for some
rationale.

But anyways we are uploading classic tarballs since today that
what Debian/Fedora/etc consume sadly, so we need to test it.

We explicitly skip `make distcheck` since we don't want to rerun
the test suite.

Closes: #1766
Approved by: jlebon

7 years agobuild-sys: Dist ostree-finalize-staged.path
Colin Walters [Thu, 25 Oct 2018 15:15:04 +0000 (15:15 +0000)]
build-sys: Dist ostree-finalize-staged.path

Otherwise the tarball doesn't work.

Closes: #1766
Approved by: jlebon

7 years agoostree/main: Wrap `Version` in `--version` in quotes
Jonathan Lebon [Wed, 24 Oct 2018 15:15:18 +0000 (11:15 -0400)]
ostree/main: Wrap `Version` in `--version` in quotes

Wrap the `Version` key in the YAML-compatible output of
`ostree --version` with quotes so that it's parsed as a string. The
issues with the previous approach in a nutshell:

```
In [5]: yaml.load("asdf: 2018.10")
Out[5]: {'asdf': 2018.1}
```

It's treating the version number as a floating-point. Now, this is
technically a backwards incompatible change, but given that the previous
approach is inherently broken for our needs, I don't see a way around
breaking it now.

Closes: #1761
Approved by: cgwalters

7 years agoPost-release version bump
Umang Jain [Tue, 23 Oct 2018 17:40:32 +0000 (23:10 +0530)]
Post-release version bump

Closes: #1761
Approved by: cgwalters

7 years agoRelease 2018.9
Umang Jain [Tue, 23 Oct 2018 17:33:31 +0000 (23:03 +0530)]
Release 2018.9

Closes: #1761
Approved by: cgwalters

7 years agoRename core.repo-finders to core.default-repo-finders
Matthew Leeds [Mon, 22 Oct 2018 22:11:39 +0000 (15:11 -0700)]
Rename core.repo-finders to core.default-repo-finders

This renames a config key to make its semantics more obvious. Despite
what the commit message says, it only applies when a set of repo finders
is not specified (either on the command line or in a library API call).
This also renames the corresponding ostree_repo_get function. We can do
this since it hasn't been released yet.

Closes: #1763
Approved by: pwithnall

7 years agolib/repo-pull: Add an explanatory comment
Matthew Leeds [Mon, 22 Oct 2018 22:11:14 +0000 (15:11 -0700)]
lib/repo-pull: Add an explanatory comment

Closes: #1763
Approved by: pwithnall

7 years agoREADME: Add bindings section
Colin Walters [Mon, 22 Oct 2018 14:58:44 +0000 (10:58 -0400)]
README: Add bindings section

Since rust-libostree now exists too, let's make sure people
know about it.

Closes: #1762
Approved by: jlebon

7 years agoboot: Add ostree-finalize-staged.path
Jonathan Lebon [Fri, 28 Sep 2018 18:30:38 +0000 (14:30 -0400)]
boot: Add ostree-finalize-staged.path

Rather than manually starting the `ostree-finalize-staged.service` unit,
we can leverage systemd's path units for this. It fits quite nicely too,
given that we already have a path we drop iif we have a staged
deployment.

To give some time for the preset to make it to systems, we don't yet
drop the explicit call to `systemctl start`. Though we do make it
conditional based on a DEBUG env var so that we can actually test it in
CI for now. Once we're sure this has propagated, we can drop the
`systemctl start` path and the env var together.

Closes: #1740
Approved by: cgwalters

7 years agoremount: Refactor to helper function instead of loop
Colin Walters [Sun, 21 Oct 2018 16:53:27 +0000 (12:53 -0400)]
remount: Refactor to helper function instead of loop

Prep for further work.  It was silly to use a loop on
a static array of two elements.

Closes: #1760
Approved by: jlebon

7 years agolib/repo-pull: Disable LAN updates by default
Matthew Leeds [Thu, 18 Oct 2018 00:02:27 +0000 (17:02 -0700)]
lib/repo-pull: Disable LAN updates by default

This commit disables searching on the local network for refs, unless
explicitly requested by the user either by changing the value of the
"core.repo-finders" config option, or by passing an OstreeRepoFinderAvahi to
ostree_repo_find_remotes_async() / ostree_repo_finder_resolve_async(),
or by specifying "lan" in the --finders option of the find-remotes
command.

The primary reason for this is that ostree_repo_find_remotes_async()
takes about 40% longer to complete with the LAN finder enabled, and that
API is used widely (e.g. in every flatpak operation). It's also probable
that some users don't want ostree doing potentially unexpected traffic
on the local network, even though everything pulled from a peer is GPG
verified.

Flathub will soon deploy collection IDs to everyone[1] so these code
paths will soon see a lot more use and that's why this change is being
made now.

Endless is the only potential user of the LAN updates feature, and we
can revert this patch on our fork of ostree. For it to be used outside
Endless OS we will need to upstream eos-updater-avahi and
eos-update-server into ostree.

[1] https://github.com/flathub/flathub/issues/676

Closes: #1758
Approved by: cgwalters

7 years agoAllow disabling pulling from LAN/USB/Internet
Matthew Leeds [Wed, 17 Oct 2018 19:55:38 +0000 (12:55 -0700)]
Allow disabling pulling from LAN/USB/Internet

Currently libostree essentially has two modes when it's pulling refs:
the "legacy" code paths pull only from the Internet, and the code paths
that are aware of collection IDs try to pull from the Internet, the
local network, and mounted filesystems (such as USB drives). The problem
is that while we eventually want to migrate everyone to using collection
IDs, we don't want to force checking LAN and USB sources if the user
just wants to pull from the Internet, since the LAN/USB code paths can
have privacy[1], security[2], and performance[3] implications.

So this commit implements a new repo config option called "repo-finders"
which can be configured to, for example, "config;lan;mount;" to check
all three sources or "config;mount;" to disable searching the LAN. The
set of values mirror those used for the --finders option of the
find-remotes command. This configuration affects pulls in three places:
1. the ostree_repo_find_remotes_async() API, regardless of whether or
not the user of the API provided a list of OstreeRepoFinders
2. the ostree_repo_finder_resolve_async() /
ostree_repo_finder_resolve_all_async() API
3. the find-remotes command

This feature is especially important right now since we soon want to
have Flathub publish a metadata key which will have Flatpak clients
update the remote config to add a collection ID.[4]

This effectively fixes https://github.com/flatpak/flatpak/issues/1863
but I'll patch Flatpak too, so it doesn't pass finders to libostree only
to then have them be removed.

[1] https://github.com/flatpak/flatpak/issues/1863#issuecomment-404128824
[2] https://github.com/ostreedev/ostree/issues/1527
[3] Based on how long the "ostree find-remotes" command takes to
  complete, having the LAN finder enabled slows down that step of the
  pull process by about 40%. See also
  https://github.com/flatpak/flatpak/issues/1862
[4] https://github.com/flathub/flathub/issues/676

Closes: #1758
Approved by: cgwalters

7 years agoostree-prepare-root.service: Run earlier in initrd
Jonathan Lebon [Thu, 18 Oct 2018 20:44:05 +0000 (16:44 -0400)]
ostree-prepare-root.service: Run earlier in initrd

Previously, we were preparing the root very late in the boot process;
right before we switch root. The issue with that is that most services
in the initrd that run `After=initrd-root-fs.target` expect that
`/sysroot` already points to the rootfs we'll be pivoting to. Running
this late violates that assumption.

This patch fixes this by making `ostree-prepare-root.service` instead
run right after `sysroot.mount` (the physical sysroot mounted by
systemd) but still before `initrd-root-fs.target` (which is the target
signalling that `/sysroot` is now valid and ready).

This should make it easier to integrate OSTree with other initrd
services such as Ignition.

Related: https://github.com/dustymabe/ignition-dracut/issues/20

Closes: #1759
Approved by: cgwalters

7 years agoostree-prepare-root.service: Use RemainAfterExit=yes
Jonathan Lebon [Thu, 18 Oct 2018 20:40:03 +0000 (16:40 -0400)]
ostree-prepare-root.service: Use RemainAfterExit=yes

For the same reasons as #1697. This is especially important in services
that are likely to be used as an `After/Before=` target in other units.
`ostree-prepare-root.service` is one such service.

Closes: #1759
Approved by: cgwalters

7 years agosysroot: Add error prefixing to deployment parsing
Colin Walters [Wed, 17 Oct 2018 16:10:40 +0000 (16:10 +0000)]
sysroot: Add error prefixing to deployment parsing

I think this is where the bare `readlinkat` came from in
https://github.com/ostreedev/ostree/issues/1459

`Error setting up sysroot: readlinkat: No such file or directory`

Closes: #1757
Approved by: jlebon

7 years agosysroot: Update some code to use fstatat_allow_noent API
Colin Walters [Wed, 17 Oct 2018 16:06:50 +0000 (16:06 +0000)]
sysroot: Update some code to use fstatat_allow_noent API

It's much easier to read and use correctly.  Making this change
since I saw an unprefixed error in an issue.

Closes: #1757
Approved by: jlebon

7 years agofinalize-staged: Bump timeout to 5 minutes
Colin Walters [Fri, 12 Oct 2018 15:37:49 +0000 (11:37 -0400)]
finalize-staged: Bump timeout to 5 minutes

See https://github.com/projectatomic/rpm-ostree/issues/1568

Basically for people on e.g. rotational media, the default 90
second timeout can be too small.

We're in a tough situation here, because delaying shutdown
can be problematic too if the user is trying to shut down their
laptop to put in a backpack, etc.

There's potential optimizations here to make; I think we
could pre-copy the kernel/initramfs for example.

I suspect for some people the grub2 os-prober is a factor here too,
if that tries to e.g. inspect attached USB rotational hard drives.
But hopefully we'll get rid of that soon.

Closes: #1755
Approved by: jlebon

7 years agorofiles-fuse: Improve error message for failure to open root
Colin Walters [Tue, 2 Oct 2018 15:47:48 +0000 (11:47 -0400)]
rofiles-fuse: Improve error message for failure to open root

I was debugging some rpm-ostree work and saw:
`openat: No such file or directory`
and it wasn't immediately obvious it was stderr from `rofiles-fuse`.

Use the `err` API which is better in many ways; in this case
it automatically prefixes with `argv0`.

Closes: #1747
Approved by: jlebon

7 years agolib/commit: Don't chown objects to repo target owner
Dan Nicholson [Fri, 12 Oct 2018 12:18:36 +0000 (12:18 +0000)]
lib/commit: Don't chown objects to repo target owner

The idea is that if the process is running as root, it can change
ownership of newly written files to match the owner of the repo.
Unfortunately, it currently applies in the other direction, too - a
non-root user writing to a root owned repository. If the repo is
writable by the user but owned by root, it can still create files and
directories there, but it can't change ownership of them.

This feature comes from
https://bugzilla.gnome.org/show_bug.cgi?id=738954. As it turns out, this
feature was never completed. It only works on content objects and not
metadata objects, refs, deltas, summaries, etc. Rather than try to fix
all of those, remove the feature until someone has interest in
completing it.

Closes: #1754
Approved by: cgwalters

7 years agocheckout: Support --union-identical and --force-copy{,--zerosized}
Colin Walters [Thu, 11 Oct 2018 18:35:23 +0000 (14:35 -0400)]
checkout: Support --union-identical and --force-copy{,--zerosized}

Actually testing the patch to add `--force-copy-zerosized` to
rpm-ostree tripped over the fact that it uses `--union-identical`,
and we just hit an assertion failure with that combination.

Fix this by copying over the logic we have for the hardlink case.

Closes: #1753
Approved by: jlebon

7 years agorepo: Add a checkout option to not hardlink zero-sized files
Colin Walters [Thu, 11 Oct 2018 13:22:16 +0000 (09:22 -0400)]
repo: Add a checkout option to not hardlink zero-sized files

In rpm-ostree we've hit a few cases where hardlinking zero-sized
files causes us problems.  The most prominent is lock files in
`/usr/etc`, such as `/usr/etc/selinux/semanage.LOCK`.  If there
are two zero-sized lock files to grab, but they're hardlinked,
then locking will fail.

Another case here is if one is using ostree inside a container
and don't have access to FUSE (i.e. `rofiles-fuse`), then the
ostree hardlinking can cause files that aren't ordinarily hardlinked
to become so, and mutation of one mutates all.  An example where
this is concerning is Python `__init__.py` files.

Now, these lock files should clearly not be in the tree to begin
with, but - we're not gaining a huge amount by hardlinking these
files either, so let's add an option to disable it.

Closes: #1752
Approved by: jlebon

7 years agosrc/ostree: Don't delete refs having aliases
Sinny Kumari [Thu, 4 Oct 2018 13:48:05 +0000 (19:18 +0530)]
src/ostree: Don't delete refs having aliases

Deleting a ref with aliases makes them dangling. In such
cases, display an error message to the user.

Fixes #1597

Signed-off-by: Sinny Kumari <sinny@redhat.com>
Closes: #1749
Approved by: cgwalters

7 years agolib/sysroot-deploy: Write to journal when finalizing
Jonathan Lebon [Fri, 5 Oct 2018 21:06:21 +0000 (17:06 -0400)]
lib/sysroot-deploy: Write to journal when finalizing

Write to the journal when starting to finalize a staged deployment.
Combined with the "Transaction completed" message we already emit, this
makes it easy later on to determine whether the operation was successful
by inspecting the journal. This will be used by `rpm-ostree status`.

Closes: #1750
Approved by: cgwalters

7 years agoboot: Add Documentation= lines to services
Jonathan Lebon [Fri, 28 Sep 2018 18:15:22 +0000 (14:15 -0400)]
boot: Add Documentation= lines to services

It's a neat way to point folks to the documentation (of course, better
would be to have man pages for each of those services). Also
consistently use Title Case everywhere.

Closes: #1750
Approved by: cgwalters

7 years agoboot: Remove [Install] from ostree-finalize-staged
Jonathan Lebon [Fri, 28 Sep 2018 18:21:39 +0000 (14:21 -0400)]
boot: Remove [Install] from ostree-finalize-staged

Let's just make this service not installable anymore. It should only be
activated manually.

Closes: #1750
Approved by: cgwalters

7 years agoman/create-usb: Don't recommend summary updates
Matthew Leeds [Tue, 2 Oct 2018 04:22:40 +0000 (21:22 -0700)]
man/create-usb: Don't recommend summary updates

This commit removes the recommendation in the create-usb man page for
the user to update the summary in the source repo before using the
create-usb command. I'm not sure where I got the idea that create-usb
depends on a summary in the source repo. I went back to the first commit
that introduced the create-usb command and even using that a summary
isn't required, so it seems unlikely that this changed recently.

This is good news because the exclusive lock that's taken for summary
updates has been causing problems on Endless (due to other processes
having a lock for the duration of the 30 second acquire time out
period).

Closes: #1746
Approved by: cgwalters

7 years agoOnly verify OSTREE_MAX_METADATA_SIZE for HTTP fetches
Colin Walters [Mon, 1 Oct 2018 00:10:14 +0000 (20:10 -0400)]
Only verify OSTREE_MAX_METADATA_SIZE for HTTP fetches

There are use cases for libostree as a local content store
for content derived or delivered via other mechanisms (e.g. OCI
images, RPMs, etc.).  rpm-ostree today imports RPMs into OSTree
branches, and puts the RPM header value as commit metadata.
Some of these can be quite large because the header includes
permissions for each file.  Similarly, some OCI metadata is large.

Since there's no security issues with this, support committing
such content.

We still by default limit the size of metadata fetches, although
for good measure we make this configurable too via a new
`max-metadata-size` value.

Closes: https://github.com/ostreedev/ostree/issues/1721
Closes: #1744
Approved by: jlebon

7 years agobash-completion: Fix --repo autocomplete
Matthew Leeds [Mon, 1 Oct 2018 05:36:42 +0000 (22:36 -0700)]
bash-completion: Fix --repo autocomplete

This commit fixes the bash tab completion handling of the "--repo"
argument. Before this commit, the completion only works if "--repo"
comes after the main command. After this commit, you can use "--repo"
directly after "ostree" in the command line, as is natural.

Closes: #1745
Approved by: jlebon

7 years agolib/mutable-tree: Port to new style
Jonathan Lebon [Fri, 28 Sep 2018 21:36:45 +0000 (17:36 -0400)]
lib/mutable-tree: Port to new style

Some therapeutic style conversion to finish off the week. Pretty
straightforward overall.

Closes: #1742
Approved by: cgwalters

7 years agolib/progress: Fix leak of GSource
Colin Walters [Fri, 28 Sep 2018 20:34:53 +0000 (16:34 -0400)]
lib/progress: Fix leak of GSource

Closes: https://github.com/ostreedev/ostree/issues/1738
Closes: #1741
Approved by: jlebon

7 years agoci: Bump rpm-ostree tag to 2018.8
Jonathan Lebon [Thu, 27 Sep 2018 00:43:02 +0000 (20:43 -0400)]
ci: Bump rpm-ostree tag to 2018.8

2018.7 started failing `test-ucontainer.sh`. I don't have the cycles to
look more deeply into what was going on there, but bumping to 2018.8
fixes it at least. (And of course, it's passing in rpm-ostree too.)

Closes: #1728
Approved by: cgwalters

7 years agoman/ostree.repo-config: Document locking options
Matthew Leeds [Fri, 28 Sep 2018 01:30:10 +0000 (18:30 -0700)]
man/ostree.repo-config: Document locking options

This commit documents the "locking" and "lock-timeout-secs" options
which have been around for a few releases.

Closes: #1737
Approved by: jlebon